<?php 
   include("../funciones.php");
$con=conexion();

if($con)
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"lang="es" xml:lang="es">

<head>
<title>
Inventario enConfianza
</title>

        <link rel="stylesheet" type="text/css" href="../plantilla.css" media="all"/>
        <link rel="stylesheet" type="text/css" href="../muffin.css"/> 
		<link rel="stylesheet" href="../tableorderer.css" type="text/css" />
        <script type="text/javascript" src="../scripts.js" language="javascript"></script>
		<script src="../scriptaculous/lib/prototype.js" type="text/javascript"></script>
		<script src="../scriptaculous/src/effects.js" type="text/javascript"></script>
		<script type="text/javascript" src="../fabtabulous.js"></script>
		<script type="text/javascript" src="../validation.js"></script>
        
        <script type="text/javascript" language="JavaScript" src="../table_orderer.js"></script>
            <script type="text/javascript" src="../window.js"></script>	
            
            <link href="themes/default.css" rel="stylesheet" type="text/css"/>
                        <link href="../themes/alphacube.css" rel="stylesheet" type="text/css"/>
 <!--       <script type="text/javascript" src="tablekit-patched.js" language="javascript"></script>	-->
	
<style media="all" type="text/css">
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <!--[if lt IE 8]>  
 <script src="img/ie/i/IE8.js" type="text/javascript"></script>  
 <![endif]-->
</head>
<body onload="Form.reset('ec');">
<div id="wrap"> 
 	<div id="header_container">
 
          <div id="header_borde_sup">
         </div>
         <div id="header_logo">
          </div>
            <div id="header_titulo">

            </div>

	</div>

<div id="contenido_container">

 <div class="msgStatus" id="status">
        <center>
            <div class="normal">
            	
            </div>
   	    </center>
    <div class="contenido">
    </div>
   </div>



	<div id="grande2" align="justify">
    <fieldset>
    <legend>Iventario de sucursales</legend>
    <p>Seleccione una Sucursal</p>
       
            
			<label for="user">Sucursal</label>
            <?php
$r = mysql_query("SELECT * FROM centro_servicio ", $con); 
?>

<select name="sucursal" id="sucursal" title="Seleccione la sucursal" class="required validate-selection" onChange="javascript:llamarasincrono('../consultas.php?valor='+this.options[this.selectedIndex].value,'datos');">
<option value="none" selected="selected">Ninguna</option>
<?php

for($c=0;$c<mysql_num_rows($r);$c++)
{
	?>
	<option value="<?php echo mysql_result($r, $c, "id_centro"); ?>"><?php echo mysql_result($r, $c, "nombre"); ?></option>
	<?php
}

?>
</select>


<div id='datos'>
</div>
    
      	

            </fieldset>

		
	</div>
  
        <div id="emparejador" style="clear: both;">
        </div>

  </div>
</div> 
 </body>
</html>
<?php
}
?>